import React, {lazy} from 'react'
const Login = lazy(()=>import('../pages/Login/Index.jsx'))
const Home = lazy(()=>import('../pages/Home/Index.jsx'))
const Detail = lazy(()=>import('../pages/Detail/Index.jsx'))
export const router=[
    {
        path:'/',
        element:<Home/>
    },
    {
        path:'/login',
        element:<Login/>
    },
    {
        path:'/detail/:id',
        element:<Detail/>
    },
]